package com.zmn.plat.persistence.interfaces.user;

import com.zmn.plat.model.entity.user.UserCount;
import com.zmn.plat.model.entity.user.UserQuery;

import java.util.List;

/**
 * @author nowind
 * @since 17/07/31 11:15
 */
public interface UserCountDao {

    UserCount findByKey(Integer userId);

    List<UserCount> listPageByQuery(UserQuery query);

    List<UserCount> listByQuery(UserQuery query);

    Integer countByQuery(UserQuery query);


    Integer updateBuyCount(UserCount userCount);

    Integer updateSaleCount(UserCount userCount);

    Integer updatePointCount(UserCount userCount);

    Integer updateGrowthCount(UserCount userCount);

    Integer updateBalance(UserCount userCount);

    Integer updateRecharge(UserCount userCount);


    Integer insert(UserCount userCount);


    Integer deleteByKey(Integer userId);

}
